home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-11
/
pdrd2.zip
/
RD.ZIP
/
RD_DEMO1.PRG
< prev
next >
Wrap
Text File
|
1993-01-11
|
1KB
|
40 lines
/*
RD_DEMO1.PRG
*/
#include "read.ch"
//---------
func main()
local getlist[0]
local cShort := "Short string"
local cLong := "This is a very long string. It is '@S PICTUREd'. This is the last of three sentences."
local nNumber := 9
local lLogical := .t.
local dDate := date()
local aArray := { "Frankie", "Library" }
local nT := 10, nL := 10, nB := 18, nR := 50
local cColor := setcolor( if( iscolor(), "W+/BG, GR+/R,,, N/R", nil ) )
local aScn, aScn2
cls
aScn = ADbox( nT, nL, nB, nR )
aScn2 = ADmessage( { "Study Keys.rd to get acquainted with the active keys and mouse spots." },;
@nT+1, nL+2 say "Short String" adget cShort
@nT+2, nL+2 say "Long String " adget cLong picture "@S24"
@nT+3, nL+2 say "Numeric " adget nNumber
@nT+4, nL+2 say "Logical " adget lLogical
@nT+5, nL+2 say "Date " adget dDate
@nT+6, nL+2 say "Array Elem1 " adget aArray[1]
@nT+7, nL+2 say "Array Elem2 " adget aArray[2]
ADread( getlist )
ADrestscn( aScn2 )
ADrestscn( aScn )
setcolor( cColor )
return nil